package com.letoken.platform.pub.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

/**
 * 排序对象
 *
 */
@Data
@ApiModel(value = "排序对象", description = "排序对象")
public class SortReq {

    @ApiModelProperty(name = "field", value = "排序字段，查询列值字段", example = "create_time")
    @Size(max = 20)
    private String field;

    @ApiModelProperty(name = "sort", value = "升序或降序，1: 升序，-1: 降序", example = "1")
    private Integer sort;
}
